for (int k = 0; j < students.size() ; j++)
{
studentdetails student = students[j];
student.print();
}
for (int k = 0; j < students.size() ; j++)
{
studentdetails student = students[j];
student.print();
}
Last edited by w00ty; 05-14-2011 at 04:35 PM. Reason: output was too long
creates a brand new student. Thus the student in your vector is ignored.Code:studentdetails student = students[j];